QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4):

CONFIG += c++11

DEFINES += LOG_LIB

TEMPLATE = lib

HEADERS += \
    log.h \
    log_global.h

SOURCES += \
    log.cpp

#包含目录
INCLUDEPATH +=  $$PWD/../../Thirdpart/log4cplus-121/include

#导入导出库
 contains(QT_ARCH, x86_64) {

    CONFIG(debug, debug|release):{ #_DEBUG_X64

         DESTDIR = $$PWD/../../../bin/x64/debug

         LIBS += -L$$PWD/../../Thirdpart/log4cplus-121/lib/x64 -llog4cplusUD

         TARGET = LogD

     }
    else:CONFIG(release, debug|release):{#_RELEASE_X64

         DESTDIR = $$PWD/../../../bin/x64/release

         LIBS += -L$$PWD/../../Thirdpart/log4cplus-121/lib/x64/ -llog4cplusU

         TARGET = Log
     }
}
else {

    CONFIG(debug, debug|release):{ #_DEBUG_X86

         DESTDIR = $$PWD/../../../bin/x86/debug

         LIBS += -L$$PWD/../../Thirdpart/log4cplus-121/lib/x86/ -llog4cplusUD

         TARGET = LogD

     }
    else:CONFIG(release, debug|release):{#_RELEASE_X86

         DESTDIR = $$PWD/../../../bin/x86/release

         LIBS += -L$$PWD/../../Thirdpart/log4cplus-121/lib/x86/ -lllog4cplusU

         TARGET = Log
     }


}
